package com.hhit.zhgd.domain.entity

import com.baomidou.mybatisplus.annotation.FieldFill
import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import java.util.Date

@TableName("admin")
data class Admin(
    @TableId(type = IdType.AUTO)
    val id: Long?=null,
    val username: String?=null,
    val password: String?=null,
    val role: String?=null,
    val avatar: String?=null,
    val status: Integer?=null,
    val safe:String?=null,
    val loginIp:String?=null,
    val loginTime:Date?=null,
    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateTime:Date?=null,
    @TableField(fill = FieldFill.INSERT)
    var createTime:Date?=null
) : java.io.Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}
